﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.ZilLionOss.Domain.Entitys;

namespace ZilLion.Service.ZilLionOss.Domain.Repositorys.Interface
{
    public interface IOssCompanyMoudleReponsitory
    {
        IList<OssCompanyMoudleEntity> GetAllCompanyMoudle();
        IList<OssCompanyMoudleEntity> GetCompanyMoudleByCompanyKey(string companyKey);
        IList<OssCompanyMoudleEntity> GetCompanyMoudleByKey(string companyKey, string moudleKey);
        void AddMoudle(OssCompanyMoudleEntity entity,UnitOfWork unit=null);
        void EditMoudle(OssCompanyMoudleEntity entity, UnitOfWork unit = null);
        void RemoveMoudle(OssCompanyMoudleEntity entity, UnitOfWork unit = null);
        void RemoveMoudleByCompanyKey(string companyKey, UnitOfWork unit = null);
    }
}